package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public final class DockModes extends IntegerPair
{
    private static final long serialVersionUID = 1L;
    public static final DockModes Top = new DockModes(0,"Top");
    public static final DockModes Left = new DockModes(1,"Left");
    public static final DockModes Right = new DockModes(2,"Right");
    public static final DockModes Bottom = new DockModes(3,"Bottom");
    public DockModes(int n,String s)
    {
        super(n,s);
    }

    public int hashCode()
    {
        return super.hashCode();
    }

    public static DockModes fromName(String strName)
    {
        return(DockModes) IntegerPair.findConstant(DockModes.class,strName,Top);
    }

}
